﻿using System.ComponentModel;
using System.Windows.Media;

namespace System.Windows.Controls
{
    internal class ScaleLabel : INotifyPropertyChanged
    {
        private Point _location = new Point(0, 0);
        private Brush _stroke;
        private string _text = string.Empty;

        public string Text
        {
            get { return _text; }
            set
            {
                _text = value;
                PropertyChanged(this, new PropertyChangedEventArgs("Text"));
            }
        }

        public Point Location
        {
            get { return _location; }
            set
            {
                _location = value;
                PropertyChanged(this, new PropertyChangedEventArgs("Location"));
            }
        }

        public Brush Stroke
        {
            get { return _stroke; }
            set
            {
                _stroke = value;
                PropertyChanged(this, new PropertyChangedEventArgs("Stroke"));
            }
        }

        #region INotifyPropertyChanged Members

        public event PropertyChangedEventHandler PropertyChanged = (sender, p) => { };

        #endregion
    }
}